package com.example.shop_2208.entity

import androidx.room.Entity
import androidx.room.PrimaryKey

data class CarEntityResult(
    val code: Int,
    val `data`: List<CarEntity>,
    val message: String
)

/**
 * 订单实体类
 */
@Entity(tableName = "order")
data class CarEntity(
    var count: Int,
    val goods_default_icon: String,
    val goods_default_price: Int,
    val goods_desc: String,
    val goods_id: Int,
    @PrimaryKey
    val id: Int,
    val order_id: Int,
    val user_id: Int,
    //用来控制列表中的复选框的值
    var isChecked:Boolean,
    var status:Int//记录订单的状态 0待下单  1待支付 2已支付 3待发货 4待收货
)